package cn.sunxyz.create.factorymethod;

import cn.sunxyz.PropertiesUtils;
import cn.sunxyz.RefUtil;

/**
 * Created by yangrd on 2017/5/12.
 */
public class Client {
    public static void main(String[] args) {
        LoggerFactory loggerFactory = RefUtil.newInstance(PropertiesUtils.getProperties("factory-method.properties").getProperty("factory"));
        Logger logger = loggerFactory.createLogger();
        logger.writeLog("hello world");
    }
}
